<?php $this->headScript()->appendFile($this->JS_PATH . 'form_invoice.js'); ?>
<link rel="stylesheet" href="<?php echo $this->CSS_PATH ?>main.css">
<div id="invoice-listing"></div>
<div class="content">
    <div class="page-title"> <i class="icon-custom-right"></i>
        <h3><span class="semi-bold"><?php echo $this->mode;?> Invoice</span></h3>
    </div>
    <div class="row">
        <div class="col-md-12">
            <div class="grid simple">
                <div class="grid-title">
                </div>
                <div class="grid-body ">
                    <div class="row">
						<?php if (count($this->errorMessageArray) > 0): ?>
                            <div class="alert alert-error">
                                <?php foreach ($this->errorMessageArray as $erroValue): ?>
                                    <div class="text-left">
                                        <i class="icon-remove-sign"></i>
                                        <?php echo $erroValue; ?>
                                    </div>
                                <?php endforeach; ?>
                            </div>
                        <?php endif; ?>

						<form role="form"  id="invoice-form" name="invoice-form"  enctype="multipart/form-data"  action="" method="post">
						   
							<div class="row form-row">
								<div class="col-md-3">
									<label class="form-label">Subject
										<span class="span_required">*</span>
									</label>
									<?php echo $this->form->inv_subject; ?>
								</div>
							
								<div class="col-md-3">
									<label class="form-label">Invoice Status
										<span class="span_required">*</span>
									</label>
									<?php echo $this->form->inv_main_status; ?>
								</div>
								
								<div class="col-md-3">
									<label class="form-label">Payment Method</label>
									<?php echo $this->form->inv_payment_method; ?>
								</div>
							</div> 
							
							<div class="row form-row">
								<div class="col-md-3">
									<label class="form-label">Invoice Date
										<span class="span_required">*</span>
									</label>
									<div class="input-append success date ">
										<?php echo $this->form->inv_date; ?>
										<span class="add-on"><span class="arrow"></span><i class="fa fa-th"></i></span>
									</div>
								</div>
								
								<div class="col-md-3">
									<label class="form-label">Pay Before</label>
									<div class="input-append success date ">
										<?php echo $this->form->inv_pay_before; ?>
										<span class="add-on"><span class="arrow"></span><i class="fa fa-th"></i></span>
									</div>
								</div>
								
								<div class="col-md-3">
									<label class="form-label">Currency</label>
									<?php echo $this->form->inv_currency; ?>
								</div>
							</div> 
							
							
						
							<div class="row form-row">
								<div class="col-md-3">
									<label class="form-label">Deal</label>
									<?php echo $this->form->inv_deal_id; ?>
								</div>
							
								<div class="col-md-3">
									<label class="form-label">Quote</label>
									<?php echo $this->form->inv_quote_id ; ?>
								</div>
							
								<div class="col-md-3">
									<label class="form-label">Contractor Type</label>
									<?php echo $this->form->inv_contractor_type ; ?>
								</div>
							</div> 
							
							<div class="row form-row">
								<div class="col-md-3">
									<label class="form-label">Contractor</label>
									<?php echo $this->form->inv_contractor_id; ?>
								</div>
						   
								<div class="col-md-3">
									<label class="form-label">Contact Person</label>
									<?php echo $this->form->inv_contact_person; ?>
								</div>
								
								<div class="col-md-3">
									<label class="form-label">Client Company Detail</label>
									<?php echo $this->form->inv_clnt_com_detail; ?>
								</div>
							</div> 

							<div class="row form-row">
								<div class="col-md-4">
									<label class="form-label">Sales Representative Comment</label>
									<?php echo $this->form->inv_sales_representative_comment; ?>
								</div>
						   
								<div class="col-md-4">
									<label class="form-label">User Comment</label>
									<?php echo $this->form->inv_user_comments; ?>
								</div>
							</div>
							
							<div class="row form-row">
								<div class="col-md-3">
									<label class="form-label">Status
										<span class="span_required">*</span>
									</label>
									<?php echo $this->form->inv_status; ?>
								</div>
							</div>
								 
							<div class="col-md-6">
								<?php if ($this->mode == 'Edit'): ?>
									<input type="submit" value="Update" class="submitfrmbtn btn btn-primary" name="Update"/>
								<?php else: ?>
									<input type="submit" value="Submit" class="submitfrmbtn   btn btn-primary" name="Submit"/>
								<?php endif; ?>
									<a href="<?php echo $this->url(array('module' => 'admin', 'controller' => 'invoice', 'action' => 'form'), null, TRUE); ?>" class="btn btn-default"/>
										Cancel
									</a>
							</div>
						</form>
					</div>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- END PAGE -->                
